package itheima.com.zuoye.d01;

public class Manager extends Insiders {
//    奖金(bonus)
    private double bonus;
    @Override
    public void work() {
//        工号为xxx的xxx的项目经理，拿着xxx的工资和xxx的奖金，正在盯着程序员写代码。
        System.out.println("工号为"+getId()+"的"+getName()+"的项目经理，拿着"+getSalary()+"的工资和"+bonus + "的奖金，正在盯着程序员写代码。");
    }

    public Manager(String name, int id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public Manager(double bonus) {
        this.bonus = bonus;
    }
}
